/* components/product-card/index.wxss */
@import '/variable.less';
.product-container {
  width: 100%; /* 占据屏幕60%宽度 */
  margin: 0 auto; /* 居中 */
}

.product-card {
  display: flex;
  padding: 16rpx;
  background: @bg-color-page;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
}

.product-image {
  width: 160rpx;
  height: 160rpx;
  border-radius: 8rpx;
  overflow: hidden;
  flex-shrink: 0;
  background:@bg-color-page;
}

.product-image image {
  width: 100%;
  height: 100%;
}

.product-info {
  flex: 1;
  margin-left: 20rpx;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 28rpx;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.4;
  margin-bottom: 8rpx;
  display: block;
}

.product-description {
  font-size: 24rpx;
  color: #86909c;
  line-height: 1.4;
  margin-bottom: 8rpx;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-tags {
  margin-bottom: 16rpx;
}

.tag {
  display: inline-block;
  padding: 4rpx 12rpx;
  background: @brand-color;
  color: @brand-color;
  border-radius: 4rpx;
  font-size: 20rpx;
}

.product-price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-container {
  display: flex;
  align-items: baseline;
}

.current-price {
  font-size: 32rpx;
  font-weight: bold;
  color: #f34d4d;
  margin-right: 12rpx;
}

.original-price {
  font-size: 24rpx;
  color: #86909c;
  text-decoration: line-through;
}

.product-action {
  border-radius: 24rpx;
  display: flex;
}

.t-button {
  color: @brand-color;
  border-radius: @radius-round;
  padding: 18rpx 24rpx;
  font-size: 24rpx;
  line-height: 1;
  border: 1px solid var(--td-brand-color, var(--td-primary-color-7, #0052d9));
}

.t-button:active {
  background: @brand-color;
}